
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module index
* @author: Hjava
* @description: HTTP模块入口文件
* @since: 2018-07-22 15:58:29
*/
var http_core_1 = __webpack_require__(/*! _http/http.core */ "./src/core/http/http.core.ts");
var http_login_1 = __webpack_require__(/*! _http/http.login */ "./src/core/http/http.login.ts");
var http_common_1 = __webpack_require__(/*! _http/http.common */ "./src/core/http/http.common.ts");
var http_vcard_1 = __webpack_require__(/*! _http/http.vcard */ "./src/core/http/http.vcard.ts");
var http_session_1 = __webpack_require__(/*! _http/http.session */ "./src/core/http/http.session.ts");
var eventEmitter_1 = __webpack_require__(/*! _util/eventEmitter */ "./src/core/utils/eventEmitter.ts");
var deviceInfo_1 = __webpack_require__(/*! _util/deviceInfo */ "./src/core/utils/deviceInfo.ts");
var userData_1 = __webpack_require__(/*! _util/userData */ "./src/core/utils/userData.ts");
var constant_1 = __webpack_require__(/*! _util/constant */ "./src/core/utils/constant.ts");
var HTTP = __assign(__assign(__assign({}, http_core_1.default), http_login_1.default), { Common: http_common_1.default, Vcard: http_vcard_1.default, Session: http_session_1.default });
if (true) {
    var IM = void 0;
    IM = __webpack_require__(/*! _http/http.im */ "./src/core/http/http.im.ts").default;
    HTTP['Msg'] = IM;
}
if (true) {
    var PUB = void 0;
    PUB = __webpack_require__(/*! _http/http.pub */ "./src/core/http/http.pub.ts").default;
    HTTP['Pub'] = PUB;
}
if (true) {
    var DATA = void 0;
    DATA = __webpack_require__(/*! _http/http.data */ "./src/core/http/http.data.ts").default;
    HTTP['DATA'] = DATA;
}
if (true) {
    var KEFU = void 0;
    KEFU = __webpack_require__(/*! _http/http.kefu */ "./src/core/http/http.kefu.ts").default;
    HTTP['KEFU'] = KEFU;
}
if (true) {
    var CR = void 0;
    CR = __webpack_require__(/*! _http/http.chatroom */ "./src/core/http/http.chatroom.ts").default;
    HTTP['Chatroom'] = CR;
}
eventEmitter_1.default.on(constant_1.LOGIN_EVENT.AUTH_SUCCESS, function (uid, xsid, appId, altoken) {
    http_core_1.default.setHeader({
        u: uid,
        ck: xsid,
        ai: appId,
        dt: deviceInfo_1.default.deviceType,
        al: altoken,
        uu: userData_1.default.get('deviceId')
    });
});
exports.default = HTTP;


//# sourceURL=webpack://MTDX/./src/core/http/index.ts?